﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DomainDrive.Core.Interface;

namespace Esb.Repository.RepoImplements
{
    public class MongoRepo<T, Key> : IRepository<T, Key> where T : IAggregateRoot<Key>, new()
    {
        public void Add(T entity)
        {
 
        }

        public T GetById(Key id)
        {
            return new T();
        }

        public IEnumerable<T> FindBySpecification(Func<T, bool> spec)
        {
            return new List<T>();
        }

        public void Remove(T entity)
        {
 
        }

        public void Update(T entity)
        {
 
        }
    }
}
